import fetch from "@/utils/fetch.js";

// 登录
export function getUserInfo(data) {
  return fetch({
    url: `/login/garageLogin`,
    method: "POST",
    data: data,
  });
}

// 设置工号
export function modifyWorkNumber(data) {
  return fetch({
    url: `/user/modifyWorkNumber`,
    method: "POST",
    data: data,
  });
}

// 获取上下班
export function allSeat(data) {
  return fetch({
    url: `/userList/allSeat`,
    method: "POST",
    data: data,
  });
}

// 获取工作状态
export function getWorkStatus(data) {
  return fetch({
    url: `/user/findWorkStatus`,
    method: "POST",
    data: data,
  });
}

// 批量操作上下班
export function batchChangeWorkStatus(data) {
  return fetch({
    url: `/user/batchChangeWorkStatus`,
    method: "POST",
    data: data,
  });
}

// 通讯录列表
export function searchUserList(data) {
  return fetch({
    url: `/userList/`,
    method: "POST",
    data: data,
  });
}

// 获取定位日志
export function userBeyondScopeList(data) {
  return fetch({
    url: `/user/userBeyondScopeList`,
    method: "POST",
    data: data,
  });
}

// 获取路数
export function loadOptions(data) {
  return fetch({
    url: `/userdata/load`,
    method: "POST",
    data: data,
  });
}

// 修改视频路数
export function maxVideoSetting(data) {
  return fetch({
    url: `/user/maxVideoSetting`,
    method: "POST",
    data: data,
  });
}
